html,body{
    font-size: 20px;
}

/*顶部*/
header{
    position: fixed;
    width: 100%;
    top:0;
    height:2rem;
    padding:.5rem 0;
    background: #01AAED;
    overflow: hidden;
    z-index: 10;
}
.searchInput{
    width: 40%;
    margin: 0 auto;
    text-align: center;
    color:#333;
}
header button{
    position: absolute;
    height: 2rem;
    border: 0;
    text-align: center;
    padding:0 10px;
    cursor: pointer;
    background: transparent;
    -webkit-appearance: none;
    transition: .4s ease-in;
    -webkit-transition: .4s ease-in;
    top:.5rem;
}
#back{
    left:0;
    width:2rem;
    font-size: 1.4rem;
    color:#FFF;
    display: none;
}
#searchBtn{
    left:50%;
    margin-left: -4rem;
}
#searchBtn>i{
      font-size: 1.6rem;
      color:#888
}
#msgBtn{
    right:1rem;
}
#msgBtn>i{
    font-size: 1.8rem;
    color:#fff
}

/*菜单栏*/
#nav{
    width: 100%;
    height:2.6rem;
    border-top:2px solid #e8e8e8;
    position: fixed;
    bottom: 0;
    background: #fff;
    z-index: 10;
}
#nav>ul{
    width: 100%;
    zoom:1;
}
#nav>ul>li{
    float: left;
    display: block;
    width: 20%;
    height:2.6rem;
    text-align: center;
    position: relative;
    cursor: pointer;
    color:#888
}
#nav>ul>li>i{
    font-size: 1rem;
    height: 1.2rem;
    display: block;
    padding-top: .3rem;
    color:inherit;
}
#nav>ul>li span{
    display: block;
    width:100%;
    box-sizing: border-box;
    text-align: center;
    position: absolute;
    font-size: .7rem;
    color:inherit;
}
#public{
    width: 4rem;
    height:4.6rem;
    background: #fff;
    position: absolute;
    z-index: 2;
    right: 50%;
    bottom:0;
    margin-right: -2rem;
    color:#40AFFE;
}
#nav>ul>li.select{
    color:#40AFFE;
}
#nav #public span{
    top:3.5rem;
    color:#888;
}
#public i{
    font-size: 3.5rem;
    color:inherit;
}

#nav>ul:after,main ul li:after{
    content:'';
    clear:both;
    display: block;
    width: 0;
    height: 0;
    visibility: hidden;
}

/*轮播*/
#banner{
    background-color: #e8e8e8;
    width: 96%;
    height: 12rem;
    margin:.6rem auto 0;
}
#online,main{
    text-align: right;
    width: 94%;
    margin: 0 auto;
    color:#888;
    font-size: .8rem;
}

/*数据块*/
#main{
    padding-bottom: 4rem;
}
#main ul{
    width: 100%;
    overflow: hidden;
}
#main ul li{
    width: 100%;
    border-top:2px solid #e8e8e8;
    border-bottom: 1px solid #888;
    height:6rem;
    margin-bottom: 1rem;
}
#main ul li>div{
    float: left;
    width: 70%;
    height:5rem;
    margin:.5rem auto;
    overflow: hidden;
}
.logoImg{
    margin-left: 1.5rem;
    width:4.4rem;
    height:4.4rem;
    border-radius:.8rem;
    border:1px solid #e8e8e8;
    float: left;
}
#main .desc{
    float: left;
    padding-left: 2rem;
}
#main .desc p{
    text-align: left;
    width: 26rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
#main .desc .title{
    color:#333;
    font-size: 1.2rem;
}
#main .desc .num{
    color:#333;
    font-size: .8rem;
    margin:4px 0;
}
#main .dealInfo{
    text-align: right;
    width: 30%;
    height:4.5rem;
    margin:1rem auto .5rem;
}
#main .dealInfo>p{
    font-size: .8rem;
    margin-bottom: .2rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
#main .dealInfo .dealNum{
    font-size: 1rem;
    color:#3F3F3F;
    margin-bottom: 0;
}
.t5{
    margin-top:5px;
}

/*商品信息窗*/
#goodsInfo{
    position: absolute;
    top:3rem;
    padding-bottom:3rem;
    z-index: 1;
    background: #fff;
    width: 100%;
    height: 100%;
}
#goodsInfo .top,#goodsInfo .businesList{
    width:98%;
    margin: 0 auto;
    background-color: #e8e8e8;
    border-radius: 4px;
}
#goodsInfo .top{
    overflow: hidden;
    height: 8rem;
    position: relative;
    margin-top: .5rem;
}
#goodsInfo .top_left{
    overflow: hidden;
    width:25%;
    height: 6.4rem;
    margin-top: .8rem;
    position: absolute;
    left: 0;
}
#goodsInfo .logoImg{
    float: none;
    border-color:#fff;
    margin: 0 auto;
}
#goodsInfo .dlInfo{
    width:45%;
    height:7.2rem;
    position: absolute;
    left: 25%;
    top:0;
    padding-top: .8rem;
}
#goodsInfo .dlInfo p{
    height: 2.4rem;
    font-size: .9rem;
}
#goodsInfo .dlEdit{
    width:30%;
    height:8rem;
    line-height: 8rem;
    text-align: center;
    position: absolute;
    right: 0;
    top:0;
}
#goodsInfo .top_left p{
    font-size: .7rem;
    height: 1rem;
    line-height: 1rem;
    text-align: center;
}
#edit_btn_group{
    width: 100%;
    height:6rem;
    padding:1rem 0;
}
#edit_btn_group>div{
    height:3rem;
    line-height: 3rem;
    overflow: hidden;
}
#edit_btn_group button,#sales button,#buy button,#gamePay button{
    width: 5.5rem;
}
#goodsInfo .btnGroup{
    font-size: 0;
    padding:.8rem 4%
}
#goodsInfo .btnGroup button{
    width: 20%;
    margin-left: 4%;
}
#goodsInfo .businesList{
    padding-bottom: 1rem;
}
#dataTable{
    width: 96%;
    margin: 0 auto;
    border-collapse: collapse;
}
#dataTable thead th{
    font-size: .8rem;
    font-weight: 600;
    color: #2B2E37;
    height: 2rem;
    line-height: 2rem;
    text-align: left;
}
#dataTable thead th:first-child{
    text-align: center;
}
#dataTable tbody tr td{
    text-align: left;
    font-size: .6rem;
    font-weight: 500;
    color: #2B2E37;
    height: 3rem;
    line-height: 3rem;
    border-bottom: 1px solid #888;
}
#dataTable tbody tr td:first-child,#dataTable tbody tr td:last-child{
    font-size: 0;
    text-align: center;
}
#dataTable tbody tr td:first-child>span{
    display: inline-block;
    font-size: .7rem;
}
.sell,.pub{
    width: 1.8rem;
    height:1.8rem;
    line-height: 1.6rem;
    border-radius: 50%;
    box-sizing: border-box;
    border: 2px solid transparent;
    background: #fff;
    font-size:inherit;
}
#dataTable .red{
    border-color: red;
    color:red;
}
#dataTable .green{
    border-color: lawngreen;
    color:lawngreen;
}
#dataTable .pub{
    width: 3rem;
    height: 3rem;
    box-sizing: border-box;
    padding-top: .2rem;
    line-height: 1.1rem;
    border-color: #888;
    vertical-align: top;
    font-size:inherit;
    margin:0 .4rem;
}
#sales,#buy{margin:1rem 2rem}
.containerForm{
    width: 80%;margin: 0 auto
}
.msg{
    margin: 1.4rem 0 .6rem;
    height:1rem;
    line-height: 1rem;
    color:#ff4500;
    text-align: center;
    font-size: .7rem;
}
.input-block{
    text-align: center;
}
#sales .layui-btn-primary{
    margin-left: 3rem;
}
#buy .layui-table tr{
    background-color: transparent;
}
#buy .layui-table tr td:first-child{
    text-align: right;
}

/*密码框*/
#pwd{
    padding-top: 4px;
}
p.type,p.game-money{
    font-size: 1.2rem;
    text-align: center;
    padding: .2rem 0;
    color:#4476A7;
}
p.price{
    font-size: 2.2rem;
    text-align: center;
    color:orangered;
}
p.game-money{
    color:#333;
    font-size: .8rem;
    margin-bottom: .8rem;
}
#pwd .layui-input{
    height: 3rem;
    line-height: 3rem;
    position: absolute;
    top:0;
    z-index: 1;
    opacity: 0;
}
#pwd .layui-form-item{
    position: relative;
    height: 3rem;
    margin-bottom: 20px;
}
#pwd .layui-form-item>span{
    width:15.8%;
    font-size: 2rem;
    height: 3rem;
    line-height: 4rem;
    vertical-align: top;
    text-align: center;
    background: #4476A7;
    display: inline-block;
    margin-left: 2px;
}

/*充值*/
#gamePay{
    padding-bottom:15px;
    overflow: hidden;
}
#gamePay .resetBtn{
    margin-left: 3rem;
}
#gamePay table tbody tr td:first-child{
    text-align: right;
}
#gamePay .num_box{
    width:4rem;
    vertical-align: top;
    text-align: center;
}


/* layer class */
body .dl.layui-layer{border-radius: .8rem;overflow: hidden;border:2px solid #BBB5B5;}
body .dl .layui-layer-title{background:#e8e8e8; color:#2F4056; border: none;padding: 10px;text-align: center;height: 1.4rem;line-height: 1.4rem;font-size: 1.2rem}
body .dl .layui-layer-btn .layui-layer-btn0{background:#F7B824;border:none;}
body .dl .layui-layer-btn .layui-layer-btn1{background:transparent;}
body .dl .layui-form-label{ width:5.8rem;}
body .dl .layui-input-block{margin-left: 6.5rem}

body .pay.layui-layer{border-radius: 1.6rem;overflow: hidden;border:2px solid #BBB5B5;}


@media screen and (max-width: 480px) {
    html,body{font-size: 80%}
    #main .logoImg{
        margin-left: .4rem;
    }
    #main .desc .num {
        margin:0;
    }
    #main .desc .title{
        font-size: .4rem;
    }
    #main .desc {
        padding-left:1rem;
    }
    #main .desc p{
        width: 9rem;
    }
    #main .dealInfo>p {
        font-size: .4rem;
    }
    #main .dealInfo .dealNum {
        font-size: .6rem;
    }
    .t5{
        margin-top: 2px;
    }
    #nav{
        padding-bottom: 4px;
    }
    .layui-btn{
        padding: .1rem .2rem
    }
    #payBtn{
        margin-top: .2rem;
    }
}